package com.jiuyue.movehouse.common.handler;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResultCode {
    SUCCESS(200,"成功"),
//    VALID_FAILD(401,"校验失败"),
    NOT_LOGIN(401,"未登录"),
    LOGIN_EXPIRED(403,"登录过期，请重新登录"),
    NO_HANDLER(404,"404,请求地址错误"),
    UNKNOW_ERROR(499,"未处理的异常,请反馈😝"),
    VERCODE_ERROR(421,"验证码错误"),
    ERROR(400,"错误"),
    ILLEGAL(400,"非法操作"),
    PARAMS_ERROR(400,"参数错误"),
    PARAMS_MISS(400,"参数缺失"),
    METHOD_ERROR(400,"方法不允许"),
    LOGIN_ERROR(401,"用户名或密码错误"),
    ACCESS_ERROR(401,"不允许访问"),
    ACCESS_TEST(400,"测试不通过"),
    NO_REPEAT_SUBMIT(500,"请勿重复提交"),
    DATA_EXPIRE(601,"数据已过期,同步中...");

    private int code;
    private String msg;

}
